#include <stdio.h>

void Min_To_Max(double * x, double * y, double * z);

int main(void)
{
    double x, y, z;
    //scanf("%lf", &x);
    //printf("%f", x);
    scanf("%lf %lf %lf", &x, &y, &z);
    Min_To_Max(&x, &y, &z);
    printf("%f, %f, %f\r\n", x, y, z);   
}

void Min_To_Max(double * x, double * y, double * z)
{
    double temp;
    if (*x > *y)
    {
        temp = *x;
        *x = *y;
        *y = temp;
    }
    if (*x > *z)
    {
        temp = *x;
        *x = *z;
        *z = temp;
    }
    if (*y > *z)
    {
        temp = *y;
        *y = *z;
        *z = temp;
    }   
}